package com.runvp.common.util.sms;

import static com.runvp.common.util.sms.GmUtils.sm4Decrypt;
import static com.runvp.common.util.sms.GmUtils.sm4Encrypt;

/**
* @email:zhangxin@champion-credit.com
* @version: 1.0
*/
public class SmsTest {

    public static void main(String[] args) throws Exception {
        String sm4Key = "C9EE71CB5A11473995133533CA38E2F0";
        String e = GmUtils.sm4Encrypt(
                "{\"reason\":\"1\",\"mobilePhone\":\"12345678912\",\"pname\":\"张xxxx\",\"interCode\":\"XYD000001\",\"certiCode\":\"32xxxxxxx\"}",
                sm4Key);
        System.out.println(e);
        String d = GmUtils.sm4Decrypt(e, sm4Key);
        System.out.println(d);
    }
}
